<!--右列-->
<div class="sidebar-right">
    <!--标题-->
    <div class="sidebar-right-title">
        <div class="sidebar-right-title-l">用户管理</div>
        <div class="clear"></div>
    </div>
    <!--标题结束-->
    <!--用户管理-->
    <div class="engine-test user-management">
        <!--测试管理左-->
        <div class="engine-test-l">
            <div class="engine-test-manage">
                <div class="engine-test-manage-l">用户组</div>
                <div class="engine-test-manage-r"><a href="javascript:void(0)" ng-click="addGroup()"><i
                        class="icon-engine-plus"></i></a></div>
                <div class="clear"></div>
            </div>
            <div class="engine-test-case">
              <div class="engine-test-case-l">
		        <a href="javascript:void(0)" ng-click="selectAll()">所有用户</a>
			  </div>
            </div>
            <div class="engine-test-case" ng-repeat="group in groups">
              <a href="javascript:void(0)" ng-click="selectGroup(group)">{{group.groupName}}</a>
              <a class="icon-engine-removeove" ng-click="deleteGroup(groups,$index,group)"></a>
            </div>
        </div>
        <!--测试管理左结束-->
        <!--测试管理右-->
        <div ng-show="all">
            <div class="engine-test-r">
                <!--搜索-->
                <div class="engine-test-manage engine-business">
                    <div class="engine-test-manage-l">所有用户</div>
                    <div class="engine-test-manage-r">
                        <span><input type="text" placeholder="用户名" class="project-name" ng-model="search.username"><i
                                class="icon-engine-search" ng-click="searchUser()"></i></span>
                        <span><button type="button" class="engine-btn-default" ng-click="add()"><i
                                class="icon-engine-plus"></i>添加新用户
                        </button></span>
                    </div>
                    <div class="clear"></div>
                </div>
                <!--搜索结束-->
                <!--详细内容-->
                <div class="engine-test-r-con">
                    <!--表格-->
                    <g-data-source url="/grule-manager/user" data-source-name="UserSource" allow-auto-load="true"
                                   page="true"></g-data-source>
                    <g-data-grid data-source-name="UserSource" on-select="selectRow(row)"
                                 g-height="200"
                                 data-checked-rows="empCheckedRows"
                                 ng-cloak>
                        <g-checkbox-column></g-checkbox-column>
                        <g-column width="227" data="username">用户名</g-column>
                        <g-column width="270" data="email">邮箱</g-column>
                        <g-column width="270">
                            <i class="fi fi-set"></i>&nbsp;操作
                            <g-column-tmpl>
                                <a href="javascript:" ng-click="remove(row)"><i class="icon-engine-delete"></i></a>
                                <a href="javascript:" ng-click="update(row)"><i class="icon-engine-edit"></i> </a>
                            </g-column-tmpl>
                        </g-column>
                    </g-data-grid>
                    <span><button type="button" class="engine-btn-success" ng-click="delete()"><i
                            class="icon-engine-delete">删除</i></a></button></span>
                    <span><button type="button" class="engine-btn-default" ng-click="addToGroup()"><i
                            class="icon-engine-plus"></i>加入到用户组
                    </button></span>
                    <g-pagination-navi source-name="UserSource"></g-pagination-navi>
                    <g-pagination-size source-name="UserSource"></g-pagination-size>
                </div>
                <!--表格结束-->
            </div>
            <!--详细内容结束-->
        </div>
        <!--测试管理右结束-->
        <div class="engine-test-r" ng-show="groupUser">
            <!--搜索-->
            <div class="engine-test-manage engine-business">
                <div class="engine-test-manage-l">{{groupName}}</div>
                <div class="engine-test-manage-r">
                    <span><input type="text" placeholder="用户名" class="project-name" ng-model="search2.username"><i
                            class="icon-engine-search" ng-click="searchUser2(groupId)"></i></span>
                    <span><button type="button" class="engine-btn-default" ng-click="addUserToGroup()"><i
                            class="icon-engine-plus"></i>加入用户
                    </button></span>
                </div>
                <div class="clear"></div>
            </div>
            <!--搜索结束-->
            <!--详细内容-->
            <div class="engine-test-r-con">
                已授权规则包：
                <span ng-repeat="packageName in packageNames">
                    <a href ng-click="permissionShow(packageName)">{{packageName.projectName}}/{{packageName.packageName}};</a>
                </span>
                <g-data-source url="/grule-manager/groupUser" data-source-name="GroupUserSource"
                               data-params="groupParams" allow-auto-load="true" page="true"></g-data-source>
                <g-data-grid data-source-name="GroupUserSource" on-select="selectRow(row)"
                             g-height="200"
                             data-checked-rows="empCheckedRows2"
                             ng-cloak>
                    <g-checkbox-column></g-checkbox-column>
                    <g-column width="400" data="username">用户名</g-column>
                    <g-column width="423">
                        <i class="fi fi-set"></i>&nbsp;操作
                        <g-column-tmpl>
                            <a href="javascript:" ng-click="remove2(row)"><i class="icon-engine-delete"></i></a>
                        </g-column-tmpl>
                    </g-column>
                </g-data-grid>
                <span><button type="button" class="engine-btn-success" ng-click="delete2()"><i
                        class="icon-engine-delete">移除</i></a></button></span>
                <g-pagination-navi source-name="GroupUserSource"></g-pagination-navi>
                <g-pagination-size source-name="GroupUserSource"></g-pagination-size>
            </div>
            <!--表格结束-->
        </div>
        <!--详细内容结束-->
    </div>

</div>
